<div class="row wrapper white-bg page-heading">
  <div class="container-fluid">
    <h2>运费模板列表</h2>
  </div>
  <hr/>
  <div class="container-fluid">
    <div class="col-md-1 pull-right" style="text-align: right">
      <button class="btn btn-primary" ui-sref="home.common.freightAdd"><i class="fa fa-plus-circle"></i> 新增运费模板</button>
    </div>
  </div>
  <br/>
  <div class="container-fluid">
    <table class="table table-hover">
      <thead>
      <tr>
        <th>模版名称</th>
        <th>计价方式</th>
        <th>满多少包邮</th>
        <th>操作</th>
      </tr>
      </thead>
      <tbody>
      <tr ng-repeat="freight in freightTemplateCtrl.freightList">
        <td style="max-width:300px;">{{freight.name}}</td>
        <td>{{freight.valuationMethod == 1?"按件数":"按重量"}}</td>
        <td>{{freight.overPrice/100}}</td>
        <td>
          <button class="btn btn-info btn-sm" ui-sref="home.common.freightAdd({freightTemplateId:freight.freightTemplateId})">修改</button>
          <button class="btn btn-danger btn-sm" ng-click="freightTemplateCtrl.delete(freight.freightTemplateId)">删除</button>
        </td>
      </tr>
      </tbody>
    </table>
  </div>

</div>
